//
//  LiveNews.h
//  ios_news
//
//  Created by Han on 14-7-7.
//  Copyright (c) 2014年 ucoder. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LiveNews : NSObject<NSCoding>

@property (nonatomic, assign) NSUInteger nid;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *content;
@property (nonatomic, strong) NSString *icon;
@property (nonatomic, strong) NSString *time;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)getDataWithBlock:(void (^)(NSArray *posts, NSError *error))block :(NSString *) url;
@end
